package it.sd.pwframework.persistence.model;

import it.sd.pwframework.persistence.annotations.CrudForm;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

@Entity
@CrudForm(label="Source Item")
public class SourceItem implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue
	protected Long id;
	
	@ManyToOne(fetch=FetchType.LAZY)
	private Item tem;

	@ManyToOne(fetch=FetchType.LAZY)
	private RemoteSource source;
	
	private String remoteKey;

	public Item getTem() {
		return tem;
	}

	public void setTem(Item tem) {
		this.tem = tem;
	}

	public RemoteSource getSource() {
		return source;
	}

	public void setSource(RemoteSource source) {
		this.source = source;
	}

	public String getRemoteKey() {
		return remoteKey;
	}

	public void setRemoteKey(String remoteKey) {
		this.remoteKey = remoteKey;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	
	
	
	
	

}
